package org.chen.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName("news")
public class NewsEntity extends Model<NewsEntity> {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String title;
    private String content;
    private String author;
    private Date publishTime;
    private String thumbnail;
    private String category;
    private String language;
    private String source;
    private Integer status;
    private Date createTime;
    private Date updateTime;
}
